class ChartModel {
/**
 * 
 * @param {*} data 
 * `chart_id` varchar(32) NOT NULL COMMENT '图表id',
  `title` varchar(100) NOT NULL COMMENT '图表名称',
  `chart_type` int(1) NOT NULL COMMENT '图表类型',
  `chart_option` longtext NOT NULL COMMENT '图表设置选项json',
  `user_id` varchar(32) NOT NULL COMMENT '用户id',
  `data_id` varchar(32) NOT NULL COMMENT '数据包id',
  `data_op` text NOT NULL COMMENT '数据操作',
  `update_time` datetime NOT NULL COMMENT '更新时间',
  PRIMARY KEY (`chart_id`)
 */
    constructor(data) {        
      this.chart_id = data.chart_id;
      this.title = data.title?data.title;
    }

    getModel(){
        return this;
    }
    
  }